<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>${site.name }</title>
<meta name="description" content="${site.description }" />
<meta name="keywords" content="${site.keywords}"/>
<jsp:include page="../../../inc/js.jsp"></jsp:include>
<jsp:include page="../../../inc/css.jsp"></jsp:include>
<script type="text/javascript">
function movePage(pageNo){
	window.location='?pageNo='+pageNo+param();
}
function search(){
	window.location='?'+param();
}
function param(){
	var param="";
	if($("#workYear").val()!="")
		param+='&workYear='+$("#workYear").val();
	if($("#realName").val()!="")
		param+='&realName='+$("#realName").val();
	if($("#sex").val()!="")
		param+='&sex='+$("#sex").val();
	if($("#degree").val()!="")
		param+='&degree='+$("#degree").val();
	return param;
}
	$(document).ready(function() {
		$.get("getSelect.do",{type:'0',index:'${param.married}'}, function(data){$("select#married").append(data);});
		$.get("getSelect.do",{type:'2',index:'${param.sex}'}, function(data){$("select#sex").append(data);});
		$.get("getSelect.do",{type:'1',code:null,index:'${param.region_treeCode}'}, function(data){$("select#region_treeCode").append(data);});
		$.get("getSelect.do",{type:'3',index:'${param.degree}'}, function(data){$("select#degree").append(data);});
		$.get("getSelect.do",{type:'4',index:'${param.nation}'}, function(data){$("select#nation").append(data);});
		$.get("getSelect.do",{type:'5',index:'${param.workType}'}, function(data){$("select#workType").append(data);});
	});
</script>
</head>
<body>
<div id="body">
<jsp:include page="../../../head.jsp"></jsp:include>
<table>
	<tr><td valign="top"><jsp:include page="leftMenu.jsp"/></td>
	<td valign="top">
<label>姓名：</label><input id="realName" value="${param.realName }">
<label>性别：</label><select id="sex" name="sex"><option value="">请选择</option></select>
<label>工作年限：</label><input id="workYear" value="${param.workYear }">
<label>学历</label><select id="degree" name="degree"><option value="">请选择</option></select>
<input type="button" value="查询" onclick="search();">
<table>
	<thead>
	<tr>
		<td>序号</td>
		<td>姓名</td>
		<td>年龄</td>
		<td>性别</td>
		<td>学历</td>
		<td>专业</td>
		<td>工作年限</td>
	</tr>
	</thead>
	<tbody>
	<c:forEach var="e" items="${o.dataList}" varStatus="s">
	<tr>
		<th>${s.index+1 }</th>
		<td><a href="showUser.do?id=${e.id }" target="_blank">${e.realName }</a></td>
		<td>${e.age }</td>
		<td>${e.sex }</td>
		<td>${e.degree }</td>
		<td>${e.major }</td>
		<td>${e.workYear }</td>
	</tr>
	</c:forEach>
	</tbody>
	<tfoot><tr><td colspan="7">${o.pageNav }</td></tr></tfoot>
</table>
</td></tr></table>
<jsp:include page="../../../foot.jsp"></jsp:include>
</div>
</body>
</html>